<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
   <head>
      <title>{%$TR->site->title%}</title>
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
      <link rel="StyleSheet" type="text/css" href="/tpa/admin.css" />
      <link rel="StyleSheet" type="text/css" href="/tpa/jquery-ui.css" />
      <script type="text/javascript" src="/lib/js/jquery.js"></script>
      <script type="text/javascript" src="/lib/js/jquery.ui.js"></script>
      <script type="text/javascript" src="/lib/js/meccano.js"></script>
      <style type="text/css">
         .footer {padding: 0 25px; margin: 0 auto; width: 420px; text-align: center; font-size: 10px; color: #999;}
         .login_form {margin: 100px auto 20px; padding: 40px 25px; width: 420px; border-bottom: 1px solid #AAA; background: transparent url(/tpa/img/lock.png) 240px 0 no-repeat;text-align: left;}
         .login_form label {font-size: 22px;color:#333;}
         .login_form input[type=text], .login_form input[type=password] {font-size: 22px;color:#555;padding: 3px 5px; height: 28px; width: 220px;margin-bottom: 10px;}
         .login_form input[type=submit] {font-size: 22px; width: 100px; padding: 3px 5px; margin-left: 131px; height: 32px;}
      </style>
   </head>
   <body>
      <div>
         <div class="login_form">
            <form action='/admin/index.html' method='post'>
               <label for='f_login'>{%$TR->meccano->login%}:</label><br />
               <input type='text' size='12' name='login' id='f_login' /><br />
               <label for='f_pwd'>{%$TR->meccano->password%}:</label><br />
               <input type='password' size='12' name='pwd' id='f_pwd' /><br />
               {%*if $CONFIG->autologin_timeout%}
               <input type="checkbox" id="remember" name="remember" /><label for="remember">- {%$TR->meccano->remember_me%}</label><br />{%/if*%}
               <input type='submit' value=' Log-in! ' />
            </form>
         </div>
         <div class="footer">
            <a href='http://artinet.com.ua/' target="_blank">ArtiNet</a> &#169; 2006
            Admin: <a href='mailto:{%$TR->admin->email%}'>{%$TR->admin->name%}</a><br />
            System Version: <b>{%$CONFIG->version%}</b>
         </div>
      </div>

      {%ErrorHandler->getLastError code='access' assign='error'%}

      {%if $error.status neq false%}
      <div id="dialog" style="display:none;">{%$TR->getTranslation a='error' b=$error.varkey%}</div>

      <script type="text/javascript">
         $(document).ready(function(){
            $("#dialog").dialog({
               bgiframe: true,
               resizable: false,
               height:140,
               modal: true,
               overlay: {
                  backgroundColor: '#000',
                  opacity: 0.5
               },
               buttons: {
                  '{%$TR->meccano->close%}': function() {
                     $(this).dialog('close');
                  }
               }
            });
         });
      </script>
      {%/if%}
   </body>
</html>